<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'

const successType = ref('')

onLoad(({ type }) => {
  successType.value = type
})

function go() {
  uni.switchTab({ url: '/pages/me/index' })
}
</script>

<template>
  <view class="h-screen">
    <nut-navbar title="提交成功" custom-color="#000" placeholder fixed />
    <view class="mt-27 center flex-col">
      <image class="h-166 w-166" src="../../../static/image/index/complaint/success.jpg" />
      <text class="mt-5.5 text-28">
        您的{{ successType }}已提交成功
      </text>
      <view class="mt-5.5">
        <nut-button custom-color="linear-gradient(to right, #F89201, #F83600)" @click="go">
          返回主页
        </nut-button>
      </view>
    </view>
  </view>
</template>
